package com.harvest.scientific.ladder.util

import android.content.Context
import android.net.ConnectivityManager
import com.harvest.scientific.ladder.base.ApGlobals

object NwUtil {
    fun isAvailable() : Boolean {
        val connManager = ApGlobals.get().getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager?
        return connManager?.activeNetworkInfo?.isAvailable ?: false
    }
}